import { Page } from 'playwright';

export class FirstPage {
    constructor(private page: Page) {}

    subcontractListEntry(): void {
        this.page.getByRole('link', { name: 'SubContract' }).click();
        this.page.getByRole('link', { name: 'SubContract List' }).click();
    }

    orderListEntry(): void {
        this.page.getByRole('link', { name: 'Order' }).click();
        this.page.getByRole('link', { name: 'Order List', exact: true }).click();
    }
    reportListEntry(): void {
        this.page.click('li.dropdown > a.dropdown-toggle:has-text("Report")');
        // this.page.getByRole('link', { name: 'Report' }).click();
        this.page.getByRole('link', { name: 'Report List', exact: true }).click();
    }
}
